﻿namespace Test.Mvc.Models
{
    public class TestWeatherViewModel
    {
        public double Latitude { get; set; } = 31.2304; // 默认经纬度
        public double Longitude { get; set; } = 121.4737;
        public List<WeatherForecast> Forecasts { get; set; } = new List<WeatherForecast>();
        public string SessionId { get; set; } // 存储 SSE 会话 ID
        public string WarningColor { get; set; }
        public string Warning { get; set; }
        public string LocationName { get; set; } // 地点名称
    }
    public class WeatherForecast
    {
        public DateTime Date { get; set; }
        public string Weather { get; set; }
        public double Temperature { get; set; }
    }
}
